package com.elitel.frame.main.entity.vo;

import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * @Description 用于bootstrap Table前端分页传值
 *
 * @author gyf
 * @version v1.0
 */
@Data
public class PageRequestVo<T> implements Serializable {
  private static final long serialVersionUID = -768549219446295665L;
  public int beginRow; // 开始条数
  public int endRow; // 结束条数
  public String searchContent; // 查询内容
  public String treeCode; // 树节点条件查询
  public String contentType;
  public String databaseId;// db_key
  private String loginname; // 登录名
  private int pageNo; // 当前页
  private int pageSize; // 页大小
  private String sysDataLabelId; // 页大小

  private String appName;//调用方code

  private String projectname;//数据源分类

  private String servertype;//服务分类编码

  private String servicetype;//服务分类编码

  private String code;//数据分类编码

  private String servicename;//服务名称

  private List<String> treeCodes;
  private String sortField;
  private String sortOrder;


  public void StartPage() {
    this.beginRow = (this.pageNo - 1) * this.pageSize + 1;
    this.endRow = this.pageNo * this.pageSize;
  }
}
